package com.program.houai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.program.houai.entity.UserVipCardEntity;
import com.program.houai.entity.VipCardOrderEntity;
import com.program.houai.entity.WxUserEntity;
import com.program.houai.mapper.UserVipCardMapper;
import com.program.houai.mapper.WxUserMapper;
import com.program.houai.po.UserCardPO;
import com.program.houai.service.IUserVipCardService;
import com.program.houai.service.IVipCardOrderService;
import com.program.houai.service.IWxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 * @version v1.0
 * @ProjectName: EOrder-master
 * @ClassName: UserVipCardServiceImpl
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Topcheer
 * @Date: 2024/8/29 21:41
 */
@Service
public class UserVipCardServiceImpl extends ServiceImpl<UserVipCardMapper, UserVipCardEntity> implements IUserVipCardService {


    @Override
    public IPage<UserVipCardEntity> getCardList(IPage page, int userId) {
        return this.baseMapper.getCardList(page,userId);
    }

    @Override
    public List<UserVipCardEntity> getCardList(int userId) {
        return this.baseMapper.getCardList(userId);
    }

    @Override
    public IPage<UserCardPO> getCardListNew(IPage page, int userId,int level) {
        return this.baseMapper.getCardListNew(page,userId,level);
    }

}
